package com.ulook.lookplanet.service;

import com.ulook.lookplanet.bean.TCommunity;
import com.ulook.lookplanet.bean.TTopic;
import com.ulook.lookplanet.mapper.CommunityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 描述：
 *
 * @author L1998
 * @date 2021/4/20
 */
@Service
public class CommunityService {

    @Autowired
    private CommunityMapper mapper;

    /**
     * 查询小组列表
     */
    public List<TCommunity> getCommunityList(){
        return mapper.getCommunityList();
    }

    /**
     * 查询话题列表
     */
    public List<TTopic> getTopicsForComuId(String comuId){
        return mapper.getTopicsForComuId(comuId);
    }
}
